package com.canyou.system.mapper;

import com.canyou.system.model.RoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author canyou
 * @since 2019-05-31
 */
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

    /**
     * 获取角色拥有的权限菜单id列表
     *
     * @param roleId
     * @return
     */
    List<Long> getMenuIdByRoleId(@Param("roleId") Long roleId);
}
